/**
 * 加载过度UI类;
 *

 */
import uiPanel from "./../../lib/UiPanel";
const { ccclass, property } = cc._decorator;
@ccclass
export default class Waiting extends uiPanel {
	@property(cc.Sprite)
	bg: cc.Sprite = null;

	@property(cc.Label)
	text: cc.Label = null;

	start() {}
	init(args) {
		this.node.zIndex = 999;
		this.text.string = args[0] || "正在加载...";
		console.log("*********************** this.text.string   ***************")
		//bg
		if (cc.vv.sceneName === "Game") {
			this.bg.enabled = true;
		} else {
			this.bg.enabled = false;
		}
	}
}
